\hypertarget{main_8cpp}{\section{main.\-cpp File Reference}
\label{main_8cpp}\index{main.\-cpp@{main.\-cpp}}
}
{\ttfamily \#include $<$time.\-h$>$}\\*
{\ttfamily \#include \char`\"{}gl\-Helper.\-hpp\char`\"{}}\\*
{\ttfamily \#include \char`\"{}types.\-hpp\char`\"{}}\\*
{\ttfamily \#include \char`\"{}world.\-hpp\char`\"{}}\\*
Include dependency graph for main.\-cpp\-:
% FIG 0
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{main_8cpp_a6819355374dd277347abd7c4235f0cd7}{reshape} (int width, int height)
\item 
void \hyperlink{main_8cpp_a2a21db8c995e9afe9718d9cccf050e24}{keyboard\-\_\-check} (unsigned char key, int x, int y)
\item 
void \hyperlink{main_8cpp_a36d31d6ec7094a3a659a6a0381c66a60}{mouse\-\_\-check} (int button, int state, int x, int y)
\item 
void \hyperlink{main_8cpp_a1e5b20fed15743656bb6d2e6a6ea6269}{display} ()
\item 
void \hyperlink{main_8cpp_a3e73164d603e05e94b8eedeb557a3245}{animate} ()
\item 
void \hyperlink{main_8cpp_a0be26f297e969c1bec3fabc753fbcee8}{init\-Core} ()
\item 
int \hyperlink{main_8cpp_a3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
const \hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{main_8cpp_a710b66d6ee2c4396c4fad5f92c8170af}{C\-R\-\_\-\-N\-U\-M} = 200
\item 
const \hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{main_8cpp_a2bbd088aa4ad488a7f0eb7c8992a606d}{X\-Size} = 1024
\item 
const \hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{main_8cpp_a5e4c6461f5ff5ff0b90db0aaea87f99e}{Y\-Size} = 550
\item 
float \hyperlink{main_8cpp_ab8ef1bf8a70cc07c6d55823c390a7e76}{angle} = 0.\-0f
\item 
\hyperlink{types_8hpp_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint} \hyperlink{main_8cpp_a5e2ce8a619b5c209e179303df57c5028}{g\-Frames\-Per\-Second} = 60
\item 
clock\-\_\-t \hyperlink{main_8cpp_a51cd2dda508b1fc59d6ca73ee7f8b8c9}{g\-Clock}
\item 
int \hyperlink{main_8cpp_acf57cf6778fa99df637c1826b51026fe}{do\-Pause} = -\/1
\item 
\hyperlink{class_world}{World} \hyperlink{main_8cpp_a8524210767eebeb4926a5f30f8bbbb68}{world}
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\hypertarget{main_8cpp_a3e73164d603e05e94b8eedeb557a3245}{\index{main.\-cpp@{main.\-cpp}!animate@{animate}}
\index{animate@{animate}!main.cpp@{main.\-cpp}}
\subsubsection[{animate}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf animate} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{main_8cpp_a3e73164d603e05e94b8eedeb557a3245}


Definition at line 96 of file main.\-cpp.



References do\-Pause, g\-Frames\-Per\-Second, World\-::update(), and world.



Referenced by main().



Here is the call graph for this function\-:
% FIG 1




Here is the caller graph for this function\-:
% FIG 2


\hypertarget{main_8cpp_a1e5b20fed15743656bb6d2e6a6ea6269}{\index{main.\-cpp@{main.\-cpp}!display@{display}}
\index{display@{display}!main.cpp@{main.\-cpp}}
\subsubsection[{display}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf display} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{main_8cpp_a1e5b20fed15743656bb6d2e6a6ea6269}


Definition at line 92 of file main.\-cpp.



References World\-::paint(), and world.



Referenced by main().



Here is the call graph for this function\-:
% FIG 3




Here is the caller graph for this function\-:
% FIG 4


\hypertarget{main_8cpp_a0be26f297e969c1bec3fabc753fbcee8}{\index{main.\-cpp@{main.\-cpp}!init\-Core@{init\-Core}}
\index{init\-Core@{init\-Core}!main.cpp@{main.\-cpp}}
\subsubsection[{init\-Core}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf init\-Core} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{main_8cpp_a0be26f297e969c1bec3fabc753fbcee8}


Definition at line 108 of file main.\-cpp.



References C\-R\-\_\-\-N\-U\-M, World\-::init(), world, X\-Size, and Y\-Size.



Referenced by main().



Here is the call graph for this function\-:
% FIG 5




Here is the caller graph for this function\-:
% FIG 6


\hypertarget{main_8cpp_a2a21db8c995e9afe9718d9cccf050e24}{\index{main.\-cpp@{main.\-cpp}!keyboard\-\_\-check@{keyboard\-\_\-check}}
\index{keyboard\-\_\-check@{keyboard\-\_\-check}!main.cpp@{main.\-cpp}}
\subsubsection[{keyboard\-\_\-check}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf keyboard\-\_\-check} (
\begin{DoxyParamCaption}
\item[{unsigned char}]{key, }
\item[{int}]{x, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}\label{main_8cpp_a2a21db8c995e9afe9718d9cccf050e24}


Definition at line 51 of file main.\-cpp.



References do\-Pause.



Referenced by main().



Here is the caller graph for this function\-:
% FIG 7


\hypertarget{main_8cpp_a3c04138a5bfe5d72780bb7e82a18e627}{\index{main.\-cpp@{main.\-cpp}!main@{main}}
\index{main@{main}!main.cpp@{main.\-cpp}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf main} (
\begin{DoxyParamCaption}
\item[{int}]{argc, }
\item[{char $\ast$$\ast$}]{argv}
\end{DoxyParamCaption}
)}}\label{main_8cpp_a3c04138a5bfe5d72780bb7e82a18e627}
Do stuff here 

Definition at line 112 of file main.\-cpp.



References animate(), display(), g\-Clock, init\-Core(), keyboard\-\_\-check(), mouse\-\_\-check(), reshape(), X\-Size, and Y\-Size.



Here is the call graph for this function\-:
% FIG 8


\hypertarget{main_8cpp_a36d31d6ec7094a3a659a6a0381c66a60}{\index{main.\-cpp@{main.\-cpp}!mouse\-\_\-check@{mouse\-\_\-check}}
\index{mouse\-\_\-check@{mouse\-\_\-check}!main.cpp@{main.\-cpp}}
\subsubsection[{mouse\-\_\-check}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf mouse\-\_\-check} (
\begin{DoxyParamCaption}
\item[{int}]{button, }
\item[{int}]{state, }
\item[{int}]{x, }
\item[{int}]{y}
\end{DoxyParamCaption}
)}}\label{main_8cpp_a36d31d6ec7094a3a659a6a0381c66a60}


Definition at line 72 of file main.\-cpp.



Referenced by main().



Here is the caller graph for this function\-:
% FIG 9


\hypertarget{main_8cpp_a6819355374dd277347abd7c4235f0cd7}{\index{main.\-cpp@{main.\-cpp}!reshape@{reshape}}
\index{reshape@{reshape}!main.cpp@{main.\-cpp}}
\subsubsection[{reshape}]{\setlength{\rightskip}{0pt plus 5cm}void {\bf reshape} (
\begin{DoxyParamCaption}
\item[{int}]{width, }
\item[{int}]{height}
\end{DoxyParamCaption}
)}}\label{main_8cpp_a6819355374dd277347abd7c4235f0cd7}


Definition at line 31 of file main.\-cpp.



Referenced by main().



Here is the caller graph for this function\-:
% FIG 10




\subsection{Variable Documentation}
\hypertarget{main_8cpp_ab8ef1bf8a70cc07c6d55823c390a7e76}{\index{main.\-cpp@{main.\-cpp}!angle@{angle}}
\index{angle@{angle}!main.cpp@{main.\-cpp}}
\subsubsection[{angle}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf angle} = 0.\-0f}}\label{main_8cpp_ab8ef1bf8a70cc07c6d55823c390a7e76}


Definition at line 25 of file main.\-cpp.



Referenced by draw\-Crap().

\hypertarget{main_8cpp_a710b66d6ee2c4396c4fad5f92c8170af}{\index{main.\-cpp@{main.\-cpp}!C\-R\-\_\-\-N\-U\-M@{C\-R\-\_\-\-N\-U\-M}}
\index{C\-R\-\_\-\-N\-U\-M@{C\-R\-\_\-\-N\-U\-M}!main.cpp@{main.\-cpp}}
\subsubsection[{C\-R\-\_\-\-N\-U\-M}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf uint} {\bf C\-R\-\_\-\-N\-U\-M} = 200}}\label{main_8cpp_a710b66d6ee2c4396c4fad5f92c8170af}


Definition at line 20 of file main.\-cpp.



Referenced by init\-Core().

\hypertarget{main_8cpp_acf57cf6778fa99df637c1826b51026fe}{\index{main.\-cpp@{main.\-cpp}!do\-Pause@{do\-Pause}}
\index{do\-Pause@{do\-Pause}!main.cpp@{main.\-cpp}}
\subsubsection[{do\-Pause}]{\setlength{\rightskip}{0pt plus 5cm}int {\bf do\-Pause} = -\/1}}\label{main_8cpp_acf57cf6778fa99df637c1826b51026fe}


Definition at line 28 of file main.\-cpp.



Referenced by animate(), and keyboard\-\_\-check().

\hypertarget{main_8cpp_a51cd2dda508b1fc59d6ca73ee7f8b8c9}{\index{main.\-cpp@{main.\-cpp}!g\-Clock@{g\-Clock}}
\index{g\-Clock@{g\-Clock}!main.cpp@{main.\-cpp}}
\subsubsection[{g\-Clock}]{\setlength{\rightskip}{0pt plus 5cm}clock\-\_\-t {\bf g\-Clock}}}\label{main_8cpp_a51cd2dda508b1fc59d6ca73ee7f8b8c9}


Definition at line 27 of file main.\-cpp.



Referenced by main().

\hypertarget{main_8cpp_a5e2ce8a619b5c209e179303df57c5028}{\index{main.\-cpp@{main.\-cpp}!g\-Frames\-Per\-Second@{g\-Frames\-Per\-Second}}
\index{g\-Frames\-Per\-Second@{g\-Frames\-Per\-Second}!main.cpp@{main.\-cpp}}
\subsubsection[{g\-Frames\-Per\-Second}]{\setlength{\rightskip}{0pt plus 5cm}{\bf uint} {\bf g\-Frames\-Per\-Second} = 60}}\label{main_8cpp_a5e2ce8a619b5c209e179303df57c5028}


Definition at line 26 of file main.\-cpp.



Referenced by animate().

\hypertarget{main_8cpp_a8524210767eebeb4926a5f30f8bbbb68}{\index{main.\-cpp@{main.\-cpp}!world@{world}}
\index{world@{world}!main.cpp@{main.\-cpp}}
\subsubsection[{world}]{\setlength{\rightskip}{0pt plus 5cm}{\bf World} {\bf world}}}\label{main_8cpp_a8524210767eebeb4926a5f30f8bbbb68}


Definition at line 29 of file main.\-cpp.



Referenced by animate(), display(), and init\-Core().

\hypertarget{main_8cpp_a2bbd088aa4ad488a7f0eb7c8992a606d}{\index{main.\-cpp@{main.\-cpp}!X\-Size@{X\-Size}}
\index{X\-Size@{X\-Size}!main.cpp@{main.\-cpp}}
\subsubsection[{X\-Size}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf uint} {\bf X\-Size} = 1024}}\label{main_8cpp_a2bbd088aa4ad488a7f0eb7c8992a606d}


Definition at line 21 of file main.\-cpp.



Referenced by init\-Core(), and main().

\hypertarget{main_8cpp_a5e4c6461f5ff5ff0b90db0aaea87f99e}{\index{main.\-cpp@{main.\-cpp}!Y\-Size@{Y\-Size}}
\index{Y\-Size@{Y\-Size}!main.cpp@{main.\-cpp}}
\subsubsection[{Y\-Size}]{\setlength{\rightskip}{0pt plus 5cm}const {\bf uint} {\bf Y\-Size} = 550}}\label{main_8cpp_a5e4c6461f5ff5ff0b90db0aaea87f99e}


Definition at line 22 of file main.\-cpp.



Referenced by init\-Core(), and main().

